Fix cpus string parsing, wrt use of ^ to remove elements.
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Mon, 3 Apr 2006 17:39:21 +0000 (18:39 +0100)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Mon, 3 Apr 2006 17:39:21 +0000 (18:39 +0100)
Patch from Satoshi Uchida <s-uchida@ap.jp.nec.com>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendDomainInfo.py

index 43f96e3d3c2e5af0162a52407909398cf2f0bbbe..1fc9137e4068ac2817b2c8ba16f64d81a18b6058 100644 (file)
@@ -333,7 +333,7 @@ def parseConfig(config):
                 else:
                     # remove this element from the list 
                     if c[0] == '^':
-                        cpus = [x for x in cpus if x != int(c[1])]
+                        cpus = [x for x in cpus if x != int(c[1:])]
                     else:
                         cpus.append(int(c))